import request from '@/utils/request'

export function info(id) {
  return request({
    url: '/sys/class/info/' + id,
    method: 'get'
  })
}

export function directorClass() {
  return request({
    url: '/sys/class/list',
    method: 'get'
  })
}

export function staticsDirectorClass() {
  return request({
    url: '/sys/class/director/class',
    method: 'get'
  })
}

export function createClass(data) {
  return request({
    url: '/sys/class/create',
    method: 'post',
    data
  })
}

export function editClass(data) {
  return request({
    url: '/sys/class/edit',
    method: 'post',
    data
  })
}

export function arrangeTimetable(data) {
  return request({
    url: '/sys/class/arrange/timetable',
    method: 'post',
    data
  })
}

export function coursesClass(id) {
  return request({
    url: '/sys/class/courses/' + id,
    method: 'get'
  })
}
